#include "ScanResult.h"

namespace GPUCC
{
	ScanResult::ScanResult() : m_Infected(false), m_Signature("")
	{
	}

	ScanResult::ScanResult(bool Infected, std::string Signature) : m_Infected(Infected), m_Signature(Signature)
	{
		if (!Infected)
		{
			this->m_Signature.assign("");
		}
		else if (m_Signature.compare("") == 0)
		{
			this->m_Infected = false;
		}
	}

	ScanResult::~ScanResult()
	{
	}

	bool ScanResult::GetInfected()
	{
		return (this->m_Infected);
	}

	const std::string& ScanResult::GetSignature()
	{
		return (this->m_Signature);
	}

	void ScanResult::SetNotInfected()
	{
		this->m_Infected = false;
	}

	void ScanResult::SetInfected(std::string Signature)
	{
		this->m_Signature.assign(Signature);

		if (this->m_Signature.compare("") == 0)
		{
			this->m_Infected = false;
		}
		else
		{
			this->m_Infected = true;
		}
	}
}